<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: UIButton Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_button.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_u_i_button-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIButton Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Similar to <a class="el" href="class_u_i_button_color.html" title="Simple example script of how a button can be colored when the mouse hovers over it or it gets pressed...">UIButtonColor</a>, but adds a 'disabled' state based on whether the collider is enabled or not.  
 <a href="class_u_i_button.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for UIButton:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_u_i_button.png" usemap="#UIButton_map" alt=""/>
  <map id="UIButton_map" name="UIButton_map">
<area href="class_u_i_button_color.html" title="Simple example script of how a button can be colored when the mouse hovers over it or it gets pressed..." alt="UIButtonColor" shape="rect" coords="0,112,116,136"/>
<area href="class_u_i_widget_container.html" title="Widget container is a generic type class that acts like a non-resizeable widget when selecting things..." alt="UIWidgetContainer" shape="rect" coords="0,56,116,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa0ad5ea4590de0b4fad7753579a4f827"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#aa0ad5ea4590de0b4fad7753579a4f827">SetState</a> (State <a class="el" href="class_u_i_button_color.html#aca4759992b37824b815130a148583be7">state</a>, bool immediate)</td></tr>
<tr class="memdesc:aa0ad5ea4590de0b4fad7753579a4f827"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change the visual state.  <a href="#aa0ad5ea4590de0b4fad7753579a4f827">More...</a><br /></td></tr>
<tr class="separator:aa0ad5ea4590de0b4fad7753579a4f827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:aed2f4c8ba9972d123a748b385c575480 inherit pub_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#aed2f4c8ba9972d123a748b385c575480">ResetDefaultColor</a> ()</td></tr>
<tr class="memdesc:aed2f4c8ba9972d123a748b385c575480 inherit pub_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the default color to what the button started with.  <a href="#aed2f4c8ba9972d123a748b385c575480">More...</a><br /></td></tr>
<tr class="separator:aed2f4c8ba9972d123a748b385c575480 inherit pub_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae65224797e350a91d071cafb1bed3eca inherit pub_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#ae65224797e350a91d071cafb1bed3eca">CacheDefaultColor</a> ()</td></tr>
<tr class="memdesc:ae65224797e350a91d071cafb1bed3eca inherit pub_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache the default color &ndash; should only happen once.  <a href="#ae65224797e350a91d071cafb1bed3eca">More...</a><br /></td></tr>
<tr class="separator:ae65224797e350a91d071cafb1bed3eca inherit pub_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7e9964fb95882c2920ee15c9c228ae9 inherit pub_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#ab7e9964fb95882c2920ee15c9c228ae9">UpdateColor</a> (bool instant)</td></tr>
<tr class="memdesc:ab7e9964fb95882c2920ee15c9c228ae9 inherit pub_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the button's color. Call this method after changing the colors of the button at run-time.  <a href="#ab7e9964fb95882c2920ee15c9c228ae9">More...</a><br /></td></tr>
<tr class="separator:ab7e9964fb95882c2920ee15c9c228ae9 inherit pub_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1edd9c8b0250845f10a204e7e4971c29"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a1edd9c8b0250845f10a204e7e4971c29">dragHighlight</a> = false</td></tr>
<tr class="memdesc:a1edd9c8b0250845f10a204e7e4971c29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the button will highlight when you drag something over it.  <a href="#a1edd9c8b0250845f10a204e7e4971c29">More...</a><br /></td></tr>
<tr class="separator:a1edd9c8b0250845f10a204e7e4971c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55ea9c63991cdc0e7087311cabc8704e"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a55ea9c63991cdc0e7087311cabc8704e">hoverSprite</a></td></tr>
<tr class="memdesc:a55ea9c63991cdc0e7087311cabc8704e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the hover state sprite.  <a href="#a55ea9c63991cdc0e7087311cabc8704e">More...</a><br /></td></tr>
<tr class="separator:a55ea9c63991cdc0e7087311cabc8704e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5e31fd63643a360fb36fab30d9ae670"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#ab5e31fd63643a360fb36fab30d9ae670">pressedSprite</a></td></tr>
<tr class="memdesc:ab5e31fd63643a360fb36fab30d9ae670"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the pressed sprite.  <a href="#ab5e31fd63643a360fb36fab30d9ae670">More...</a><br /></td></tr>
<tr class="separator:ab5e31fd63643a360fb36fab30d9ae670"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73851ad603434e59fbca634cc4fe21b5"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a73851ad603434e59fbca634cc4fe21b5">disabledSprite</a></td></tr>
<tr class="memdesc:a73851ad603434e59fbca634cc4fe21b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the disabled sprite.  <a href="#a73851ad603434e59fbca634cc4fe21b5">More...</a><br /></td></tr>
<tr class="separator:a73851ad603434e59fbca634cc4fe21b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ebf5bd5e8474dd08a3c19c76aaa26b6"><td class="memItemLeft" align="right" valign="top">UnityEngine.Sprite&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a4ebf5bd5e8474dd08a3c19c76aaa26b6">hoverSprite2D</a></td></tr>
<tr class="memdesc:a4ebf5bd5e8474dd08a3c19c76aaa26b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the hover state sprite.  <a href="#a4ebf5bd5e8474dd08a3c19c76aaa26b6">More...</a><br /></td></tr>
<tr class="separator:a4ebf5bd5e8474dd08a3c19c76aaa26b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82a67db464a1ef45a6834a1a28ebf6fa"><td class="memItemLeft" align="right" valign="top">UnityEngine.Sprite&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a82a67db464a1ef45a6834a1a28ebf6fa">pressedSprite2D</a></td></tr>
<tr class="memdesc:a82a67db464a1ef45a6834a1a28ebf6fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the pressed sprite.  <a href="#a82a67db464a1ef45a6834a1a28ebf6fa">More...</a><br /></td></tr>
<tr class="separator:a82a67db464a1ef45a6834a1a28ebf6fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad07a9fb3d0d46513453432a55a7f70ad"><td class="memItemLeft" align="right" valign="top">UnityEngine.Sprite&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#ad07a9fb3d0d46513453432a55a7f70ad">disabledSprite2D</a></td></tr>
<tr class="memdesc:ad07a9fb3d0d46513453432a55a7f70ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Name of the disabled sprite.  <a href="#ad07a9fb3d0d46513453432a55a7f70ad">More...</a><br /></td></tr>
<tr class="separator:ad07a9fb3d0d46513453432a55a7f70ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97f0206a7fb40437241229fa1dba971f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a97f0206a7fb40437241229fa1dba971f">pixelSnap</a> = false</td></tr>
<tr class="memdesc:a97f0206a7fb40437241229fa1dba971f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the sprite changes will elicit a call to MakePixelPerfect() or not.  <a href="#a97f0206a7fb40437241229fa1dba971f">More...</a><br /></td></tr>
<tr class="separator:a97f0206a7fb40437241229fa1dba971f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a856c0bb8890873532ad62ed81847e4c4"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_event_delegate.html">EventDelegate</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a856c0bb8890873532ad62ed81847e4c4">onClick</a> = new List&lt;<a class="el" href="class_event_delegate.html">EventDelegate</a>&gt;()</td></tr>
<tr class="memdesc:a856c0bb8890873532ad62ed81847e4c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Click event listener.  <a href="#a856c0bb8890873532ad62ed81847e4c4">More...</a><br /></td></tr>
<tr class="separator:a856c0bb8890873532ad62ed81847e4c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:aebb73e7a3ee80001c85ae685c0c738c4 inherit pub_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">GameObject&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#aebb73e7a3ee80001c85ae685c0c738c4">tweenTarget</a></td></tr>
<tr class="memdesc:aebb73e7a3ee80001c85ae685c0c738c4 inherit pub_attribs_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Target with a widget, renderer, or light that will have its color tweened.  <a href="#aebb73e7a3ee80001c85ae685c0c738c4">More...</a><br /></td></tr>
<tr class="separator:aebb73e7a3ee80001c85ae685c0c738c4 inherit pub_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae579f4148d3e94f75b45a9dcedd2f9f6 inherit pub_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#ae579f4148d3e94f75b45a9dcedd2f9f6">hover</a> = new Color(225f / 255f, 200f / 255f, 150f / 255f, 1f)</td></tr>
<tr class="memdesc:ae579f4148d3e94f75b45a9dcedd2f9f6 inherit pub_attribs_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Color to apply on hover event (mouse only).  <a href="#ae579f4148d3e94f75b45a9dcedd2f9f6">More...</a><br /></td></tr>
<tr class="separator:ae579f4148d3e94f75b45a9dcedd2f9f6 inherit pub_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94ffb5202f64d68d24950b21c893f7ba inherit pub_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#a94ffb5202f64d68d24950b21c893f7ba">pressed</a> = new Color(183f / 255f, 163f / 255f, 123f / 255f, 1f)</td></tr>
<tr class="memdesc:a94ffb5202f64d68d24950b21c893f7ba inherit pub_attribs_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Color to apply on the pressed event.  <a href="#a94ffb5202f64d68d24950b21c893f7ba">More...</a><br /></td></tr>
<tr class="separator:a94ffb5202f64d68d24950b21c893f7ba inherit pub_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2d13480d0e126883ecc327e6426ed054 inherit pub_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#a2d13480d0e126883ecc327e6426ed054">disabledColor</a> = Color.grey</td></tr>
<tr class="memdesc:a2d13480d0e126883ecc327e6426ed054 inherit pub_attribs_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Color that will be applied when the button is disabled.  <a href="#a2d13480d0e126883ecc327e6426ed054">More...</a><br /></td></tr>
<tr class="separator:a2d13480d0e126883ecc327e6426ed054 inherit pub_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5d787d257ac906a90c90712e3d34160 inherit pub_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#af5d787d257ac906a90c90712e3d34160">duration</a> = 0.2f</td></tr>
<tr class="memdesc:af5d787d257ac906a90c90712e3d34160 inherit pub_attribs_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Duration of the tween process.  <a href="#af5d787d257ac906a90c90712e3d34160">More...</a><br /></td></tr>
<tr class="separator:af5d787d257ac906a90c90712e3d34160 inherit pub_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a405a8ecca6fa944e288ee9da0913f3b0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_u_i_button.html">UIButton</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a405a8ecca6fa944e288ee9da0913f3b0">current</a></td></tr>
<tr class="memdesc:a405a8ecca6fa944e288ee9da0913f3b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current button that sent out the onClick event.  <a href="#a405a8ecca6fa944e288ee9da0913f3b0">More...</a><br /></td></tr>
<tr class="separator:a405a8ecca6fa944e288ee9da0913f3b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ab3d80cc19ea01627975eb5ff637e9be0"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#ab3d80cc19ea01627975eb5ff637e9be0">OnInit</a> ()</td></tr>
<tr class="memdesc:ab3d80cc19ea01627975eb5ff637e9be0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache the sprite we'll be working with.  <a href="#ab3d80cc19ea01627975eb5ff637e9be0">More...</a><br /></td></tr>
<tr class="separator:ab3d80cc19ea01627975eb5ff637e9be0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58a189da2de1337343a7d5d999a01719"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a58a189da2de1337343a7d5d999a01719">OnEnable</a> ()</td></tr>
<tr class="memdesc:a58a189da2de1337343a7d5d999a01719"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the initial state.  <a href="#a58a189da2de1337343a7d5d999a01719">More...</a><br /></td></tr>
<tr class="separator:a58a189da2de1337343a7d5d999a01719"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd8c6580d3a4e02f5670b7e63c0c544a"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#afd8c6580d3a4e02f5670b7e63c0c544a">OnDragOver</a> ()</td></tr>
<tr class="memdesc:afd8c6580d3a4e02f5670b7e63c0c544a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Drag over state logic is a bit different for the button.  <a href="#afd8c6580d3a4e02f5670b7e63c0c544a">More...</a><br /></td></tr>
<tr class="separator:afd8c6580d3a4e02f5670b7e63c0c544a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14104ef831e17e3d5f2dd770e10f1fdc"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a14104ef831e17e3d5f2dd770e10f1fdc">OnDragOut</a> ()</td></tr>
<tr class="memdesc:a14104ef831e17e3d5f2dd770e10f1fdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Drag out state logic is a bit different for the button.  <a href="#a14104ef831e17e3d5f2dd770e10f1fdc">More...</a><br /></td></tr>
<tr class="separator:a14104ef831e17e3d5f2dd770e10f1fdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e2cd09e0b50fb6742f1ba78be65141c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a3e2cd09e0b50fb6742f1ba78be65141c">OnClick</a> ()</td></tr>
<tr class="memdesc:a3e2cd09e0b50fb6742f1ba78be65141c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call the listener function.  <a href="#a3e2cd09e0b50fb6742f1ba78be65141c">More...</a><br /></td></tr>
<tr class="separator:a3e2cd09e0b50fb6742f1ba78be65141c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf61f997d501784bc735a4dd2cfed9a8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#aaf61f997d501784bc735a4dd2cfed9a8">SetSprite</a> (string sp)</td></tr>
<tr class="memdesc:aaf61f997d501784bc735a4dd2cfed9a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that changes the sprite.  <a href="#aaf61f997d501784bc735a4dd2cfed9a8">More...</a><br /></td></tr>
<tr class="separator:aaf61f997d501784bc735a4dd2cfed9a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98141b84471673e405c96cd81bb2091a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a98141b84471673e405c96cd81bb2091a">SetSprite</a> (UnityEngine.Sprite sp)</td></tr>
<tr class="memdesc:a98141b84471673e405c96cd81bb2091a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that changes the sprite.  <a href="#a98141b84471673e405c96cd81bb2091a">More...</a><br /></td></tr>
<tr class="separator:a98141b84471673e405c96cd81bb2091a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:a03811e4496e06687bdc33318d0ee4824 inherit pro_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#a03811e4496e06687bdc33318d0ee4824">OnDisable</a> ()</td></tr>
<tr class="memdesc:a03811e4496e06687bdc33318d0ee4824 inherit pro_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the initial state.  <a href="#a03811e4496e06687bdc33318d0ee4824">More...</a><br /></td></tr>
<tr class="separator:a03811e4496e06687bdc33318d0ee4824 inherit pro_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5ce186771fbbc2ab768525767506225 inherit pro_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#ac5ce186771fbbc2ab768525767506225">OnHover</a> (bool isOver)</td></tr>
<tr class="memdesc:ac5ce186771fbbc2ab768525767506225 inherit pro_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the hover state.  <a href="#ac5ce186771fbbc2ab768525767506225">More...</a><br /></td></tr>
<tr class="separator:ac5ce186771fbbc2ab768525767506225 inherit pro_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a476a508a34da99f7dac30fee0be66412 inherit pro_methods_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#a476a508a34da99f7dac30fee0be66412">OnPress</a> (bool isPressed)</td></tr>
<tr class="memdesc:a476a508a34da99f7dac30fee0be66412 inherit pro_methods_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the pressed state.  <a href="#a476a508a34da99f7dac30fee0be66412">More...</a><br /></td></tr>
<tr class="separator:a476a508a34da99f7dac30fee0be66412 inherit pro_methods_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a51ef0ed4276fc4a827795f77da347516"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a51ef0ed4276fc4a827795f77da347516">isEnabled</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a51ef0ed4276fc4a827795f77da347516"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the button should be enabled.  <a href="#a51ef0ed4276fc4a827795f77da347516">More...</a><br /></td></tr>
<tr class="separator:a51ef0ed4276fc4a827795f77da347516"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58db500369a709c11ec378e8bd6478c5"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a58db500369a709c11ec378e8bd6478c5">normalSprite</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a58db500369a709c11ec378e8bd6478c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that changes the normal sprite.  <a href="#a58db500369a709c11ec378e8bd6478c5">More...</a><br /></td></tr>
<tr class="separator:a58db500369a709c11ec378e8bd6478c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e85d2d7dd734258b639a1453251b7d"><td class="memItemLeft" align="right" valign="top">UnityEngine.Sprite&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button.html#a37e85d2d7dd734258b639a1453251b7d">normalSprite2D</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a37e85d2d7dd734258b639a1453251b7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that changes the normal sprite.  <a href="#a37e85d2d7dd734258b639a1453251b7d">More...</a><br /></td></tr>
<tr class="separator:a37e85d2d7dd734258b639a1453251b7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('properties_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:aca4759992b37824b815130a148583be7 inherit properties_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">State&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#aca4759992b37824b815130a148583be7">state</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aca4759992b37824b815130a148583be7 inherit properties_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Button's current state.  <a href="#aca4759992b37824b815130a148583be7">More...</a><br /></td></tr>
<tr class="separator:aca4759992b37824b815130a148583be7 inherit properties_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55a05e249511c48c2f672242157d55fb inherit properties_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">Color&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#a55a05e249511c48c2f672242157d55fb">defaultColor</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a55a05e249511c48c2f672242157d55fb inherit properties_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_u_i_button_color.html" title="Simple example script of how a button can be colored when the mouse hovers over it or it gets pressed...">UIButtonColor</a>'s default (starting) color. It's useful to be able to change it, just in case.  <a href="#a55a05e249511c48c2f672242157d55fb">More...</a><br /></td></tr>
<tr class="separator:a55a05e249511c48c2f672242157d55fb inherit properties_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addf5e6fdfefa1d7c72c8ed6c0488de45 inherit properties_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_button_color.html#addf5e6fdfefa1d7c72c8ed6c0488de45">isEnabled</a><code> [get, set]</code></td></tr>
<tr class="memdesc:addf5e6fdfefa1d7c72c8ed6c0488de45 inherit properties_class_u_i_button_color"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the script should be active or not.  <a href="#addf5e6fdfefa1d7c72c8ed6c0488de45">More...</a><br /></td></tr>
<tr class="separator:addf5e6fdfefa1d7c72c8ed6c0488de45 inherit properties_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:a917e731d45c5a7b576df2a485a5a23c2 inherit pub_types_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a917e731d45c5a7b576df2a485a5a23c2"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>State</b> { <b>Normal</b>, 
<b>Hover</b>, 
<b>Pressed</b>, 
<b>Disabled</b>
 }</td></tr>
<tr class="separator:a917e731d45c5a7b576df2a485a5a23c2 inherit pub_types_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_u_i_button_color"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_u_i_button_color')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a></td></tr>
<tr class="memitem:a32fe7178609b0a4d3e30ccc9a41ad838 inherit pro_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32fe7178609b0a4d3e30ccc9a41ad838"></a>
Color&#160;</td><td class="memItemRight" valign="bottom"><b>mStartingColor</b></td></tr>
<tr class="separator:a32fe7178609b0a4d3e30ccc9a41ad838 inherit pro_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd65396db533713497f410250399c301 inherit pro_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd65396db533713497f410250399c301"></a>
Color&#160;</td><td class="memItemRight" valign="bottom"><b>mDefaultColor</b></td></tr>
<tr class="separator:afd65396db533713497f410250399c301 inherit pro_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc76c347075f03fd3b1ad20583e2b87a inherit pro_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc76c347075f03fd3b1ad20583e2b87a"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mInitDone</b> = false</td></tr>
<tr class="separator:abc76c347075f03fd3b1ad20583e2b87a inherit pro_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5bb6ec399ea9f8b51c71391fb556ea4 inherit pro_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5bb6ec399ea9f8b51c71391fb556ea4"></a>
<a class="el" href="class_u_i_widget.html">UIWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mWidget</b></td></tr>
<tr class="separator:aa5bb6ec399ea9f8b51c71391fb556ea4 inherit pro_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a880a160663e4afe429d74a635b1e8465 inherit pro_attribs_class_u_i_button_color"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a880a160663e4afe429d74a635b1e8465"></a>
State&#160;</td><td class="memItemRight" valign="bottom"><b>mState</b> = State.Normal</td></tr>
<tr class="separator:a880a160663e4afe429d74a635b1e8465 inherit pro_attribs_class_u_i_button_color"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Similar to <a class="el" href="class_u_i_button_color.html" title="Simple example script of how a button can be colored when the mouse hovers over it or it gets pressed...">UIButtonColor</a>, but adds a 'disabled' state based on whether the collider is enabled or not. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3e2cd09e0b50fb6742f1ba78be65141c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void UIButton.OnClick </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Call the listener function. </p>

</div>
</div>
<a class="anchor" id="a14104ef831e17e3d5f2dd770e10f1fdc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override void UIButton.OnDragOut </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Drag out state logic is a bit different for the button. </p>

<p>Reimplemented from <a class="el" href="class_u_i_button_color.html#a368968ad1c87a8589d3439ec05d5113c">UIButtonColor</a>.</p>

</div>
</div>
<a class="anchor" id="afd8c6580d3a4e02f5670b7e63c0c544a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override void UIButton.OnDragOver </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Drag over state logic is a bit different for the button. </p>

<p>Reimplemented from <a class="el" href="class_u_i_button_color.html#a0617981f7b7b57ecbb31920a4fd62e5d">UIButtonColor</a>.</p>

</div>
</div>
<a class="anchor" id="a58a189da2de1337343a7d5d999a01719"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override void UIButton.OnEnable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the initial state. </p>

<p>Reimplemented from <a class="el" href="class_u_i_button_color.html#a3fed4630e4b77f8a612b4e5fa19a5d22">UIButtonColor</a>.</p>

</div>
</div>
<a class="anchor" id="ab3d80cc19ea01627975eb5ff637e9be0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override void UIButton.OnInit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cache the sprite we'll be working with. </p>

<p>Reimplemented from <a class="el" href="class_u_i_button_color.html">UIButtonColor</a>.</p>

</div>
</div>
<a class="anchor" id="aaf61f997d501784bc735a4dd2cfed9a8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UIButton.SetSprite </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>sp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function that changes the sprite. </p>

</div>
</div>
<a class="anchor" id="a98141b84471673e405c96cd81bb2091a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UIButton.SetSprite </td>
          <td>(</td>
          <td class="paramtype">UnityEngine.Sprite&#160;</td>
          <td class="paramname"><em>sp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function that changes the sprite. </p>

</div>
</div>
<a class="anchor" id="aa0ad5ea4590de0b4fad7753579a4f827"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override void UIButton.SetState </td>
          <td>(</td>
          <td class="paramtype">State&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>immediate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Change the visual state. </p>

<p>Reimplemented from <a class="el" href="class_u_i_button_color.html#ad2bdba93835df1dfc4809fd6ae1df161">UIButtonColor</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a405a8ecca6fa944e288ee9da0913f3b0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_button.html">UIButton</a> UIButton.current</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Current button that sent out the onClick event. </p>

</div>
</div>
<a class="anchor" id="a73851ad603434e59fbca634cc4fe21b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string UIButton.disabledSprite</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the disabled sprite. </p>

</div>
</div>
<a class="anchor" id="ad07a9fb3d0d46513453432a55a7f70ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UnityEngine.Sprite UIButton.disabledSprite2D</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the disabled sprite. </p>

</div>
</div>
<a class="anchor" id="a1edd9c8b0250845f10a204e7e4971c29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIButton.dragHighlight = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the button will highlight when you drag something over it. </p>

</div>
</div>
<a class="anchor" id="a55ea9c63991cdc0e7087311cabc8704e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string UIButton.hoverSprite</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the hover state sprite. </p>

</div>
</div>
<a class="anchor" id="a4ebf5bd5e8474dd08a3c19c76aaa26b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UnityEngine.Sprite UIButton.hoverSprite2D</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the hover state sprite. </p>

</div>
</div>
<a class="anchor" id="a856c0bb8890873532ad62ed81847e4c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_event_delegate.html">EventDelegate</a>&gt; UIButton.onClick = new List&lt;<a class="el" href="class_event_delegate.html">EventDelegate</a>&gt;()</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Click event listener. </p>

</div>
</div>
<a class="anchor" id="a97f0206a7fb40437241229fa1dba971f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool UIButton.pixelSnap = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the sprite changes will elicit a call to MakePixelPerfect() or not. </p>

</div>
</div>
<a class="anchor" id="ab5e31fd63643a360fb36fab30d9ae670"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string UIButton.pressedSprite</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the pressed sprite. </p>

</div>
</div>
<a class="anchor" id="a82a67db464a1ef45a6834a1a28ebf6fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UnityEngine.Sprite UIButton.pressedSprite2D</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Name of the pressed sprite. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="a51ef0ed4276fc4a827795f77da347516"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">override bool UIButton.isEnabled</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the button should be enabled. </p>

</div>
</div>
<a class="anchor" id="a58db500369a709c11ec378e8bd6478c5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">string UIButton.normalSprite</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function that changes the normal sprite. </p>

</div>
</div>
<a class="anchor" id="a37e85d2d7dd734258b639a1453251b7d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">UnityEngine.Sprite UIButton.normalSprite2D</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convenience function that changes the normal sprite. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/Interaction/UIButton.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_button.html">UIButton</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:28 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
